package cn.com.huzo.webapp.controller.financial;

import huzofw.common.web.controller.BaseFormController;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 结存画面控制器。
 *
 * @author 吴旭
 */
@Controller
@RequestMapping(value = "/financial/balance")
public class BalanceController extends BaseFormController {

    // <editor-fold defaultstate="collapsed" desc="属性">
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="画面处理部分">
    /**
     * 跳转到结存一览画面
     * <p>
     * @param request
     * @return
     * @throws java.lang.Exception
     */
    @RequestMapping("/list.html")
    public ModelAndView redirectListWnd(HttpServletRequest request) throws Exception {
        ModelAndView view = new ModelAndView();
        view.setViewName("financial.balance.list.def");
        return view;
    }

    /**
     * 跳转到结存编辑画面
     *
     * @return
     * @throws java.lang.Exception
     */
    @RequestMapping("/edit.html")
    public ModelAndView redirectEditWnd() throws Exception {
        ModelAndView view = new ModelAndView();
        // 为画面设置变量
        view.setViewName("financial.balance.edit.def");
        return view;
    }
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="数据处理">
    // </editor-fold>
}
